﻿using HPIT.RentHouse.IService;
using Newtonsoft.Json;
using System.Web.Mvc;
using System.Web.Http;

namespace HPIT.RentHouse.Admin.Controllers
{
    public class AdminController :Controller
    {

        //属性文件
        IAdminUsersService adminUserService;
        public AdminController(IAdminUsersService adminUserService) {
            this.adminUserService = adminUserService;
        }

        public string GetAll() {
          return JsonConvert.SerializeObject(adminUserService.GetList());
        }




    }
}
